package com.dao;

import java.util.List;
import java.util.Map;

import com.po.Menu;
import com.po.Role;
import com.po.RoleMenu;
import com.po.UserSys;

public interface IRoleDao {
	public Integer findByCount(Role role);
	public List<Role> findByList(Role role);
	public List<Role> findById(Role role);	
	public Integer saveObject(Role role);
	public Integer updateObject(Role role);	
	public Integer deleteObejct(Role role);	
	public List<Role> findByExist(Role role);
	
	public Integer deleteByIdUserRole(Role role);
	public Integer deleteByIdRoleMenu(Role role);
	
	public List<UserSys> findByRoleUser(Integer roleid);
	public List<UserSys> findByRoleUserNot(Integer roleid);
	public Integer deleteByIdRoleUserOne(Map map);
	public Integer saveByIdRoleUserOne(Map map);
	
	public List<Menu> findByRoleMenuAll();
	public List<RoleMenu> findByRoleMenu(Integer roleid);	
	public Integer saveByIdRoleMenuOne(Map map);
	
	public Integer deleteByIdRoleUserId(Map map);
	
}
